package com.shuyuntu.proposal.entity;

import javax.persistence.*;
import java.util.Date;

/**
 * Created by limeng on 16/6/2.
 */
@Entity
@Table(name = "system_config")
public class SystemConfig {
    /**
     * 主键
     */
    private Integer id;

    /**
     * 大会名称
     */
    private String title;

    /**
     * 会议开始时间
     */
    private Date startTime;

    /**
     * 会议结束时间
     */
    private Date endTime;

    /**
     * 附议结束的时间
     */
    private Date motionClosingTime;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Column(nullable = false)
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Temporal(value = TemporalType.DATE)
    @Column(name = "start_time", nullable = false)
    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    @Temporal(value = TemporalType.DATE)
    @Column(name = "end_time", nullable = false)
    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    @Temporal(value = TemporalType.DATE)
    @Column(name = "motion_closing_time")
    public Date getMotionClosingTime() {
        return motionClosingTime;
    }

    public void setMotionClosingTime(Date motionClosingTime) {
        this.motionClosingTime = motionClosingTime;
    }
}
